<table>
    <tr valign="top">
        <td>
            <a class="lienAjax" href="config/viewFile?threadName=motion" target="form">Options Generales</a> | 
            <a class="supprimAjax" href="config/initMotion">Reinitialiser</a>
            <br />
            <br />
            <a class="lienAjax" title="Nouveau" href="config/afficheForm" target="form">Nouvelle Camera</a><br />
            <table>
                <tr><th>Id</th><th>Camera</th><th>Mask</th><th>Supprimer</th></tr>
                <?php
                    $threads = $this->threads;
                    foreach($threads as $row){
                    $threadId = $row['id'];
                    $threadName = $row['name'];
                    ?>
                    <tr>
                        <td><?php echo $threadId; ?></td>
                        <td><a class="lienAjax" href="config/viewFile?threadId=<?php echo $threadId; ?>&threadName=<?php echo $threadName; ?>" target="form"><?php echo $threadName; ?></a></td>
                        <td><a class="lienAjax" title="Mask" href="config/getMask?threadId=<?php echo $threadId; ?>" target="form"><img src="imgweb/layers.png" /></a></td>
                        <td><a class="supprimAjax" title="Supprimer" href="config/deleteFile?threadId=<?php echo $threadId; ?>&threadName=<?php echo $threadName;?>" target="configRub"><img src="imgweb/webcam_delete.png" /></a></td>
                    </tr>
                <?php } ?>
            </table>   
        </td>
        <td id="form"></td>
    </tr>
</table>   
